import 'package:flutter_taotaoshipin/model/goods_list_entity.dart';
import 'package:flutter_taotaoshipin/model/pay_config_list_entity.dart';

class SubscriptionState {
  late bool showBring;
  late bool showBack;
  late GoodsListEntity? currGood;
  late GoodsListEntity? pinnedGood; // 置顶商品
  late PayConfigListList? currPayConfig;
  late bool isAgreePrivacy;

  // 商品类型列表
  late List<GoodsListEntity> goodsList;
  // 支付方式
  late PayConfigListEntity? payConfigListEntity;
  // 已经订阅过
  late bool isSubscripted;

  SubscriptionState() {
    ///Initialize variables
    showBring = true;
    showBack = true;
    goodsList = [];
    payConfigListEntity = null;
    currGood = null;
    pinnedGood=null;
    currPayConfig = null;
    isAgreePrivacy = false;
    isSubscripted = false;
  }
}
